package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * @author hyh
 * @version 1.0
 */
public interface ShoppingCartService {
    /**
     * 添加信息到购物车中
     * @param shoppingCartDTO
     */
    void addShopCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 购物车信息
     * @return
     */
    List<ShoppingCart> shopView();

    /**
     * 清空购物车
     */
    void Clean();

    /**
     * 删除某一个
     * @param shoppingCartDTO
     */
    void deleteOne(ShoppingCartDTO shoppingCartDTO);
}
